﻿using System;
namespace MxWeiXinPF.Model
{
    /// <summary>
    /// 优惠券主表
    /// </summary>
    [Serializable]
    public partial class wx_shop_coupon
    {
        public wx_shop_coupon()
        { }
        #region Model
        private int _id;
        private string _couponname;
        private decimal _money = 0.0M;
        private int _coupontype = 0;
        private int _shopid;
        private decimal _enough;
        private string _description;
        private DateTime _createtime;
        private int _status = 1;
        private string _thumb;
        private string _expiredthumb;
        private string _usedthumb;
        private int _categoryid = 0;
        private DateTime _timestart;
        private DateTime _timeend;
        private int _numperuser = 1;
        private int _totalnum = 0;
        /// <summary>
        /// 
        /// </summary>
        public int id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 优惠券名字
        /// </summary>
        public string couponname
        {
            set { _couponname = value; }
            get { return _couponname; }
        }
        /// <summary>
        /// 减免金额
        /// </summary>
        public decimal money
        {
            set { _money = value; }
            get { return _money; }
        }
        /// <summary>
        /// 优惠券类型
        /// </summary>
        public int coupontype
        {
            set { _coupontype = value; }
            get { return _coupontype; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int shopid
        {
            set { _shopid = value; }
            get { return _shopid; }
        }
        /// <summary>
        /// 满多少金额才能使用
        /// </summary>
        public decimal enough
        {
            set { _enough = value; }
            get { return _enough; }
        }
        /// <summary>
        /// 优惠券描述
        /// </summary>
        public string description
        {
            set { _description = value; }
            get { return _description; }
        }
        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime createtime
        {
            set { _createtime = value; }
            get { return _createtime; }
        }
        /// <summary>
        /// 状态0未启用,1已启用2作废
        /// </summary>
        public int status
        {
            set { _status = value; }
            get { return _status; }
        }
        /// <summary>
        /// 图标
        /// </summary>
        public string thumb
        {
            set { _thumb = value; }
            get { return _thumb; }
        }

        /// <summary>
        /// 过期图标
        /// </summary>
        public string expiredthumb
        {
            set { _expiredthumb = value; }
            get { return _expiredthumb; }
        }

        /// <summary>
        /// 已使用图标
        /// </summary>
        public string usedthumb
        {
            set { _usedthumb = value; }
            get { return _usedthumb; }
        }
        /// <summary>
        /// 商品目录ID
        /// </summary>
        public int categoryid
        {
            set { _categoryid = value; }
            get { return _categoryid; }
        }
        /// <summary>
        /// 开始日期
        /// </summary>
        public DateTime timestart
        {
            set { _timestart = value; }
            get { return _timestart; }
        }
        /// <summary>
        /// 截止日期
        /// </summary>
        public DateTime timeend
        {
            set { _timeend = value; }
            get { return _timeend; }
        }
        /// <summary>
        /// 每个用户可用几张
        /// </summary>
        public int numperuser
        {
            set { _numperuser = value; }
            get { return _numperuser; }
        }
        /// <summary>
        /// 优惠券总数,0为不限制
        /// </summary>
        public int totalnum
        {
            set { _totalnum = value; }
            get { return _totalnum; }
        }
        #endregion Model

    }
}

